package cn.iocoder.yudao.module.book.controller.app.booksShell.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 绘本新增/修改 Request VO")
@Data
public class AppBooksSaveReqVO {

    @Schema(description = "绘本id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8895")
    private Integer bookId;

    @Schema(description = "绘本集id", example = "31985")
    private Integer collectionId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "绘本封面", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "绘本封面不能为空")
    private String coverUrl;

    @Schema(description = "创建时间")
    @NotNull(message = "创建时间不能为空")
    private String createTime;

    @Schema(description = "创建者")
    @NotEmpty(message = "创建者不能为空")
    private String creator;

}